/*
 * @Description: 征集FORM
 * @Author: Zzt
 * @Date: 2022-12-28 17:17:34
 * @LastEditTime: 2022-12-28 18:51:52
 */
import { Col, DatePicker, Form, Input, Row, Select } from 'antd';

const methodOptions = [
  { label: '捐赠', value: 1 },
  { label: '征购', value: 2 },
  { label: '复制', value: 3 },
  { label: '其他', value: 4 }
];
const solicitationTypeOptions = [
  { label: '讲话稿', value: 1 },
  { label: '录音', value: 2 },
  { label: '录像', value: 3 },
  { label: '照片', value: 4 },
  { label: '题词', value: 5 },
  { label: '书信', value: 6 },
  { label: '实物', value: 7 }
];
const typeOptions = [
  { label: '个人', value: 1 },
  { label: '公司', value: 2 }
];
const openUpOptions = [
  { label: '开放', value: 1 },
  { label: '不开放', value: 2 }
];
const CollectionFrom = () => {
  return (
    <>
      <Form.Item label="条目名称" name="name" rules={[{ required: true }]} labelCol={{ span: 3 }}>
        <Input placeholder="请填写条目名称" />
      </Form.Item>
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item
            label="征集方式"
            name="method"
            rules={[{ required: true }]}
            labelCol={{ span: 9 }}
            wrapperCol={{ span: 15 }}
          >
            <Select options={methodOptions} placeholder="=请选择征集方式="></Select>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="征集类型" name="solicitationType" rules={[{ required: true }]}>
            <Select options={solicitationTypeOptions} placeholder="=请选择征集类型="></Select>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="来源类型" name="type" rules={[{ required: true }]}>
            <Select options={typeOptions} placeholder="=请选择来源类型="></Select>
          </Form.Item>
        </Col>
      </Row>
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item
            label="来源人"
            name="source"
            rules={[{ required: true }]}
            labelCol={{ span: 9 }}
            wrapperCol={{ span: 15 }}
          >
            <Input placeholder="请填写来源人姓名"></Input>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="证件信息" name="identification" rules={[{ required: true }]}>
            <Input placeholder="请填写来源人证件信息"></Input>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="是否开放" name="openUp" rules={[{ required: true }]}>
            <Select options={openUpOptions} placeholder="=请选择是否开放="></Select>
          </Form.Item>
        </Col>
      </Row>
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item
            label="征集时间"
            name="solicitationTime"
            labelCol={{ span: 9 }}
            wrapperCol={{ span: 15 }}
          >
            <DatePicker placeholder="yyyy/mm/dd" />
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="征集地点" name="solicitationPlace" rules={[{ required: true }]}>
            <Input placeholder="请填写征集地点"></Input>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="来源人地址" name="sourceAddress ">
            <Input placeholder="请填写来源人地址"></Input>
          </Form.Item>
        </Col>
      </Row>
      <Row gutter={16}>
        <Col span={8}>
          <Form.Item label="电话" name="telephone" labelCol={{ span: 9 }} wrapperCol={{ span: 15 }}>
            <Input placeholder="请填写电话"></Input>
          </Form.Item>
        </Col>
        <Col span={8}>
          <Form.Item label="邮箱" name="eMail" labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
            <Input placeholder="请填写邮箱"></Input>
          </Form.Item>
        </Col>
      </Row>
      <Form.Item
        label="档案管理征集人"
        name="Solicitor"
        labelCol={{ span: 3 }}
        wrapperCol={{ span: 5 }}
      >
        <Input placeholder="请填写征集人姓名"></Input>
      </Form.Item>
      <Form.Item label="征集描述" name="description" labelCol={{ span: 3 }}>
        <Input.TextArea maxLength={2000} placeholder="征集描述，最多可填写2000字" />
      </Form.Item>
      <Form.Item label="备注" name="remark" labelCol={{ span: 3 }}>
        <Input.TextArea maxLength={2000} placeholder="备注信息描述，最多可填写2000字" />
      </Form.Item>
    </>
  );
};
export default CollectionFrom;
